<!-- BEGIN PAGE HEADING ROW -->
<div class="row">
	<div class="col-lg-12">
		<?= $this->element('admin/breadcrumb', array('breadcrumb' => $breadcrumb)); ?>

		<div class="page-header">
			<h1>Sửa thông tin tài khoản</h1>
		</div>

		<?php echo $this->element('admin/config-right')?>

	</div><!-- /.col-lg-12 -->
</div><!-- /.row -->
<!-- END PAGE HEADING ROW -->


<div class="row">
	<div class="col-lg-6">

		<?php echo $this->Session->flash(); ?>

		<div class="portlet portlet-default">
			<div class="portlet-heading">
				<div class="portlet-title">
					<h4>Sửa</h4>
				</div>
				<div class="portlet-widgets">
					<a data-toggle="collapse" data-parent="#accordion" href="#f-3" class=""><i class="fa fa-chevron-down"></i></a>
				</div>
				<div class="clearfix"></div>
			</div>
			<div id="f-3" class="panel-collapse collapse in">
				<div class="portlet-body">
					<?php echo $this->Form->create('User', array('class' => 'form-horizontal'));?>
						<div class="form-group">
							<label class="col-sm-3 control-label">Họ tên</label>
							<div class="col-sm-9">
								<?php echo $this->Form->hidden('User.id', array( 'value' => isset($this->data['User']['id']) ? $this->data['User']['id'] : '' ) )?>
								<?php echo $this->Form->input('User.full_name', array( 'label' => false, 'div' => false, 'class' => 'form-control', 'placeholder' => 'Nhập họ tên' ) )?>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Tên đăng nhập</label>
							<div class="col-sm-9">
								<?php echo $this->Form->input('User.username', array( 'label' => false, 'div' => false, 'class' => 'form-control', 'placeholder' => 'Nhập tên đăng nhập' ) )?>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Mật khẩu</label>
							<div class="col-sm-9">
								<?php echo $this->Form->hidden('User.oldpass', array( 'value' => isset($this->data['User']['oldpass']) ? $this->data['User']['oldpass'] : '' ) )?>
								<?php echo $this->Form->input('User.password', array( 'label' => false, 'div' => false, 'class' => 'form-control', 'placeholder' => 'Nhập mật khẩu' ) )?>
							</div>
						</div>
						<div class="form-actions">
							<div class="form-group">
								<div class="col-sm-offset-3 col-sm-9">
									<button type="submit" class="btn btn-default">Lưu</button>
									<a href="<?= $this->webroot.'admin' ?>" class="btn">Hủy bỏ</a>
								</div>
							</div>
						</div>
					<?php echo $this->Form->end( ); ?>
				</div>
			</div>
		</div>


	</div><!-- /.col-lg-12 -->
</div><!-- /.row -->